package com.java502.shirodemo502.pojo;


import java.sql.Timestamp;

public class User {

  private Integer id;
  private String userName;
  private Long userPhone;
  private String userPwd;
  private Timestamp userAddTime;
  private Integer roleId;
  /**
   * 记住我
   */
  private boolean rememberMe;

  /**
   * 用户角色
   */
  private Role role;


  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public boolean isRememberMe() {
    return rememberMe;
  }

  public void setRememberMe(boolean rememberMe) {
    this.rememberMe = rememberMe;
  }

  public Role getRole() {
    return role;
  }

  public void setRole(Role role) {
    this.role = role;
  }

  public String getUserName() {
    return userName;
  }

  public void setUserName(String userName) {
    this.userName = userName;
  }


  public Long getUserPhone() {
    return userPhone;
  }

  public void setUserPhone(Long userPhone) {
    this.userPhone = userPhone;
  }


  public String getUserPwd() {
    return userPwd;
  }

  public void setUserPwd(String userPwd) {
    this.userPwd = userPwd;
  }


  public Timestamp getUserAddTime() {
    return userAddTime;
  }

  public void setUserAddTime(Timestamp userAddTime) {
    this.userAddTime = userAddTime;
  }


  public Integer getRoleId() {
    return roleId;
  }

  public void setRoleId(Integer roleId) {
    this.roleId = roleId;
  }


  @Override
  public String toString() {
    return "User{" +
            "id=" + id +
            ", userName='" + userName + '\'' +
            ", userPhone=" + userPhone +
            ", userPwd='" + userPwd + '\'' +
            ", userAddTime=" + userAddTime +
            ", roleId=" + roleId +
            ", role=" + role +
            '}';
  }
}
